Skip to content

feat: Add client_info support for custom telemetry in Authentication and Management clients#802

Merged
kishore7snehil merged 1 commit intomasterfrom
feat/client-info-override
Mar 30, 2026
Merged

feat: Add client_info support for custom telemetry in Authentication and Management clients#802
kishore7snehil merged 1 commit intomasterfrom
feat/client-info-override

Conversation

@kishore7snehil
Copy link
Copy Markdown
Contributor

Changes

  • Add optional client_info dict param to RestClientOptions to override the default telemetry payload
  • Use provided client_info as the Auth0-Client header value in RestClient when telemetry is enabled
  • Thread client_info param through AuthenticationBase constructor to RestClientOptions
  • Add client_info param to ManagementClient - encodes and merges into headers dict
  • Add client_info param to AsyncManagementClient with identical behavior
  • telemetry=False still takes precedence and suppresses all telemetry headers
  • User-Agent header remains Python/{version} regardless of client_info
  • No changes to any Fern-generated files (client.py, client_wrapper.py, http_client.py)

Usage

# Authentication
from auth0.authentication import GetToken

client = GetToken(
    "tenant.auth0.com",
    client_id="YOUR_CLIENT_ID",
    client_info={"name": "auth0-ai-langchain", "version": "1.0.0", "env": {"python": "3.11.0"}},
)

# Management
from auth0.management import ManagementClient

client = ManagementClient(
    domain="tenant.auth0.com",
    token="YOUR_TOKEN",
    client_info={"name": "auth0-ai-langchain", "version": "1.0.0", "env": {"python": "3.11.0"}},
)

@kishore7snehil kishore7snehil requested a review from a team as a code owner March 26, 2026 08:18
Copy link
Copy Markdown
Member

@duedares-rvj duedares-rvj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kishore7snehil kishore7snehil merged commit 10c6a76 into master Mar 30, 2026
8 checks passed
@kishore7snehil kishore7snehil deleted the feat/client-info-override branch March 30, 2026 07:41
@kishore7snehil kishore7snehil mentioned this pull request Mar 30, 2026
kishore7snehil added a commit that referenced this pull request Mar 30, 2026
**⚠️ Breaking: Python 3.8 support dropped**
- Python 3.8 reached end-of-life in October 2024. This release requires
**Python >=3.9.2**. Users on Python 3.8 should remain on v5.1.0 until
they upgrade their Python version.
[\#808](#808)

**Added**
- feat: Add default domain endpoints, connection key provisioning,
tenant SCIM listing; remove MiiCard/Renren providers
[\#801](#801)
([fern-api[bot]](https://github.com/apps/fern-api))
- feat: Add client_info support for custom telemetry in Authentication
and Management clients
[\#802](#802)
([kishore7snehil](https://github.com/kishore7snehil))
- feat: Add SDK logging infrastructure with configurable log levels and
header redaction [\#785](#785)
([fern-api[bot]](https://github.com/apps/fern-api))

**Fixed**
- fix: Pagination page advancement incorrectly skipping pages
[\#785](#785)
([fern-api[bot]](https://github.com/apps/fern-api))

**Changed**
- chore: Update ruff, aiohttp, cryptography, urllib3, codecov-action;
replace Snyk with SCA scan
[\#808](#808)
([kishore7snehil](https://github.com/kishore7snehil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants